package langnstats.project.languagemodel.loglinear;

import langnstats.project.lib.WordType;
import langnstats.project.lib.clustering.WordTypeClusterer;

public class TrigramSemiCluster extends LLFeature{
	
	private static final long serialVersionUID = 33L; 
	
	private WordType history = null;
	
	public String getFeature(WordType token){
		String feature="";
		WordTypeClusterer wtc = new WordTypeClusterer();
		
		if(history == null){
			feature="_"+token.getName();
		}
		else{
			feature=String.valueOf(wtc.getClusterID(history))+"_"+token.getName();
		}
		history=token;
		return "c1_w2="+feature;
	}
	
	public void rewind(){}
}

